package com.github.sbb.sherry.console.exception;


import org.springframework.http.HttpStatus;

/**
 * The type Resource no found exception.
 */
public class ResourceNoFoundException extends BaseException {

  @Override
  public ErrorOutputLogLevelEnum getLogLevel() {
    return ErrorOutputLogLevelEnum.WARN;
  }

  /**
   * Instantiates a new Resource no found exception.
   *
   * @param code    the code
   * @param message the message
   */
  public ResourceNoFoundException(String code, String message) {
    super(HttpStatus.NOT_FOUND, code, message);
  }

  /**
   * Instantiates a new Resource no found exception.
   *
   * @param message the message
   */
  public ResourceNoFoundException(String message) {
    super(HttpStatus.NOT_FOUND, ErrorCode.NOT_FUND, message);
  }
}
